import { defineConfig } from 'vite'
import Uni from '@dcloudio/vite-plugin-uni'

export default defineConfig(async () => {
  const { default: AutoImport } = await import('unplugin-auto-import/vite')

  return {
    plugins: [
      Uni(),
      AutoImport({
        imports: ['vue', 'uni-app'],
      }),
    ],
  }
})
